<?
foreach($contents as $content){	
	eval ($content->contentmodule->view_frontend);
}
?>